<?php

namespace app\api\model;

use think\Model;

class ThirdbindModel extends Model
{
    protected $name = "third_bind";
    protected $autoWriteTimestamp = true;

    public static function getUserBind($openid)
    {
        return self::where('openid',$openid)->field('tel')->find();
    }
    
    // 解绑
    public static function delBind($tel,$type)
    {
        return self::where('tel',$tel)->where('type',$type)->delete();
    }

    //
}
